package com.psp.web.service;

import com.psp.web.controller.res.bean.RInvoiceHeaderDetailBean;
import com.psp.web.controller.res.bean.RInvoiceHeaderListBean;
import com.psp.web.service.exception.ServiceException;
import com.psp.web.service.impl.PageResult;

public interface InvoiceService {

	/**
	 * 发票抬头列表
	 * 
	 * @param page
	 * @param pageSize
	 * @param uid
	 * @return
	 */
	PageResult<RInvoiceHeaderListBean> getHeaderList(int page, int pageSize, String uid);

	/**
	 * 保存发票抬头
	 * 
	 * @param id
	 * @param uid
	 * @param title
	 * @param type
	 * @return
	 */
	boolean saveHeader(String id, String uid, String title, Integer type) throws ServiceException;

	/**
	 * 删除发票抬头
	 * 
	 * @param uid
	 * @param id
	 * @return
	 */
	boolean deleteHeader(String uid, String id) throws ServiceException;

	/**
	 * 获取发票抬头详情
	 * 
	 * @param id
	 * @param uid
	 * @return
	 */
	RInvoiceHeaderDetailBean getHeaderDetail(String id, String uid);

}
